package com.wz.project.system.item.mapper;

import com.wz.project.system.item.domain.Item;
import com.wz.project.system.item.domain.ItemDetail;
import com.wz.project.system.item.domain.ItemDetails;
import com.wz.project.system.item.domain.ItemDetailss;
import com.wz.project.system.prjgroup.domain.Prjgroup;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ItemMapper {

    List<Item> selectItemList(@Param("item") Item item);

    ItemDetail selectUserGroupByPrjld(@Param("prjId") Integer prjId);
    List<ItemDetailss> selectDetailByPrjld(@Param("prjId") Integer prjId);

    int insertItem(@Param("item") Item item);

    int deleteItemByIds(@Param("ids") Integer ids);

    Item selectItemByItemPrjID(@Param("prjID") Integer prjID);

    int saveAndUpdate(@Param("item") Item item);

    List<Prjgroup> selectPrjgroupByDeptId(@Param("deptId") Integer deptId);

    List<ItemDetails> selectItemDetailsList(@Param("itemDetails") ItemDetails itemDetails);
}
